
public class EnemyStateBase : EntityStateBase
{
    protected Enemy enemy;
    private float battleAnimatorMultiplier;
    public EnemyStateBase(Enemy enemy, StateMachine stateMachine, string animName) : base(stateMachine, animName)
    {
        this.enemy = enemy;
        animator = enemy.animator;
        rb = enemy.rb;
        entityStat = enemy.entityStat;
    }
    protected override void UpdateAnimationParameters()
    {
        base.UpdateAnimationParameters();
        battleAnimatorMultiplier = enemy.GetBattleSpeed()/ enemy.GetMoveSpeed();
        animator.SetFloat("MoveAnimatorMultiplier", enemy.MoveAnimatorMultiplier);
        animator.SetFloat("BattleAnimatorMultiplier", battleAnimatorMultiplier);
        animator.SetFloat("xVelocity", enemy.GetBattleSpeed());
    }
}   
